import request from '@/utils/request'

export function getSubjectUsabelList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/subject/getUsableList',
    method: 'post',
    data: query
  })
}

export function getSubjectDistrictList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/subject/getDistrictList',
    method: 'post',
    data: query
  })
}


export function getSubjectList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/subject/getList',
    method: 'post',
    data: query
  })
}   

export function saveSubject(query) {
  return request({
    url: '/examine/admin/subject/save',
    method: 'post',
    data: query
  })
}

export function removeSubject(query) {
  return request({
    url: '/examine/admin/subject/remove',
    method: 'post',
    data: query
  })
}
export function getSubjectDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/subject/getDetail',
    method: 'post',
    data: query
  })
}